from peewee import AutoField, SmallIntegerField, BooleanField
from common.model.abstrct import AbstractModel


class IdWorkerModel(AbstractModel):

    class Meta:
        table_name = "tb_config_id_worker_config"

    config_id = AutoField(primary_key=True, help_text="配置id")
    worker_id = SmallIntegerField(help_text="工作者id")
    data_center_id = SmallIntegerField(help_text="数据中心id")
    in_use = BooleanField(default=False, help_text="是否在使用")



